import { ITableInit } from "@/components/base-ui/table";

export const tableInit: ITableInit = {
  propList: [
    { prop: "orderid", label: "订单号", minWidth: "150" },
    { prop: "createTime", label: "订单时间", minWidth: "150", },

    { prop: "price", label: "订单金额", minWidth: "100", slot: "price" },
    { prop: "username", label: "客户名", minWidth: "100" },
    {
      prop: "orderstatu",
      label: "订单状态",
      minWidth: "100",
      slot: "orderstatu"
    }
  ],
  // children: {
  //   rowKey: "id",
  //   treeProp: {
  //     children: "children",
  //     hasChildren: true
  //   }
  // }
  // showIndex: false,
  // selection: false,
  cardStyle: {
    marginTop: "10px",
    border: "none"
  },
  height: 240,
  pagination: false,
  paginationConfig: {
    currentPage: 1,
    pageSize: 10
  },
  total: 0
  // btn: ['add', 'export', 'del']
};
